package com.hp.modules.sys.dto;

import com.hp.common.base.YesNoEnum;
import com.hp.common.validator.Groups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * @author:mcfan
 * @description:接收请求参数实体
 * @date: create in 10:14 2021/3/31
 */
@ApiModel(description = "参数配置")
public class SysConfigParam {
    @ApiModelProperty(value = "编号-更新时必填")
    @NotNull(message = "编号不能为空",groups = {Groups.Update.class})
    private Long id;
    @ApiModelProperty(value = "参数名称",required = false)
    private String configName;
    @ApiModelProperty(value = "参数键名",required = false)
    private String configKey;
    @ApiModelProperty(value = "参数键值",required = false)
    private String configValue;
    @ApiModelProperty(value = "系统内置(1->否|NO,2->是|YES)",required = false)
    private YesNoEnum isSystem;
    @ApiModelProperty(value = "备注",required = false)
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public String getConfigKey() {
        return configKey;
    }

    public void setConfigKey(String configKey) {
        this.configKey = configKey;
    }

    public String getConfigValue() {
        return configValue;
    }

    public void setConfigValue(String configValue) {
        this.configValue = configValue;
    }

    public YesNoEnum getIsSystem() {
        return isSystem;
    }

    public void setIsSystem(YesNoEnum isSystem) {
        this.isSystem = isSystem;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
